package com.spzx.product.mapper;

import com.spzx.product.domain.ProductSku;
import com.spzx.product.dto.SkuQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 商品sku Mapper 接口
 * </p>
 *
 * @author gaozz
 * @since 2024-06-18
 */
public interface ProductSkuMapper {

    void saveBatch(@Param("productSkuList") List<ProductSku> productSkuList);

    List<ProductSku> selectSkus(Long productId);

    void updateBatch(@Param("productSkuList") List<ProductSku> productSkuList);

    List<Long> selectIds(Long[] productIds);

    void delete(@Param("skuIds") List<Long> skuIds);

    List<ProductSku> findProductSkuNo20();

    List<ProductSku> skuList(SkuQuery query);

    ProductSku getSkuInfoById(Long skuId);

    List<ProductSku> getSkuPrice(@Param("skuIds") Set<String> skuIds);
}
